<template>
	<view class="news-list">
		<view class="news-item">
			<view class="pic">
				<image :src="imgSrc" mode="aspectFill"></image>
			</view>
			<view class="text">
				<view class="title">
					测试多次三次很骄傲刷课了陈山聪调试测试多次三次很骄傲刷课了陈山聪调试测试多次三次很骄傲刷课了陈山聪调试
				</view>
				<view class="info">
					<text>娱君坠星河</text>
					<text>999浏览量</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				imgSrc: 'https://inews.gtimg.com/news_bt/OqoRaIoZ0kPIqo3sMAwqmvTiX4tVB92wz_SZE6gT9OZFAAA/641'
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.news-list {
		box-sizing: border-box;
		padding: 15rpx 0;

		.news-item {
			display: flex;
			justify-content: space-between;
			position: relative;

			&::after {
				clear: both;
				content: '';
				position: absolute;
				left: 0;
				bottom: -15rpx;
				width: 100%;
				margin-top: 15rpx;
				height: 1px;
				background: rgba(240, 240, 240, 1);
				transform: scaleY(0.5);
			}
		}

		.pic {
			width: 230rpx;
			height: 160rpx;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.text {
			flex: 1;
			padding-left: 20rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-between;

			.title {
				padding-top: 12rpx;
				font-size: 30rpx;
				display: -webkit-box;
				overflow: hidden;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
			}

			.info {
				font-size: 22rpx;
				color: #999999;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				word-break: break-all;

				text {
					margin-right: 20rpx;
				}
			}
		}
	}
</style>
